package org.hbnu.webregisterlogin.service;

import org.hbnu.webregisterlogin.entity.Users;
import org.hbnu.webregisterlogin.mapper.UsersMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UsersService implements UsersMapper {

    @Autowired
    UsersMapper usersMapper;
    @Override
    public Users findByEmail(String email) {
        return usersMapper.findByEmail(email);
    }

    @Override
    public void add(Users users) {
        usersMapper.add(users);
    }

    @Override
    public void delete(int id) {
        usersMapper.delete(id);
    }

    @Override
    public void update(Users users) {
        usersMapper.update(users);
    }
}
